package net.atomarrow.bs.domain;

import net.atomarrow.db.annotation.Index;
import net.atomarrow.domains.Domain;
import net.atomarrow.domains.INDEX;

import java.util.Date;

public class TbAccount extends Domain{
	private int id;
	@Index
	private String username;
	@Index(value=INDEX.UNIQUE)
	private String nickname;
	@Index
	private String phone;
	private String qq;
	@Index
	private String email;

	private Date registerTime;
	public static void main(String[] args) {
		new TbAccount().generateAllSingleTable();
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Date getRegisterTime() {
		return registerTime;
	}
	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}


}
